package com.icekrvams.billing.utilities

import com.android.billingclient.api.ProductDetails
import com.android.billingclient.api.Purchase

internal fun MutableMap<String, ProductDetails>.resetWith(newMap: Map<String, ProductDetails>) {
    this.clear()
    this.putAll(newMap)
}

internal fun MutableList<Purchase>.resetWith(newList: List<Purchase>) {
    this.clear()
    this.addAll(newList)
}
